import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/payment",
  name: "Payment",
  component: Layout,
  redirect: "/payment/list",
  meta: {
    icon: "ep:credit-card",
    title: "支付配置",
    rank: home + 4
  },
  children: [
    {
      path: "/payment/list",
      name: "PaymentList",
      component: () => import("@/views/payment/list.vue"),
      meta: {
        title: "支付配置列表"
      }
    },
    {
      path: "/payment/create",
      name: "PaymentCreate",
      component: () => import("@/views/payment/create.vue"),
      meta: {
        title: "新增支付配置"
      }
    },
    {
      path: "/payment/edit/:id",
      name: "PaymentEdit",
      component: () => import("@/views/payment/edit.vue"),
      meta: {
        title: "编辑支付配置"
      }
    }
  ]
} satisfies RouteConfigsTable;